﻿using System;
using System.Collections.ObjectModel;
using System.Net;
using System.Runtime.Serialization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Serialization;

namespace G.APITest.Config
{
    [DataContract]
    public class APIGroup:G.SL.Data.NotifyObject
    {
        public APIGroup()
        {
            this.APIConfigs = new ObservableCollection<APIConfig>();
        }

        private APIProjectConfig projectConfig;
        internal APIProjectConfig ProjectConfig
        {
            get
            {
                return projectConfig;
            }
            set
            {
                projectConfig = value;
            }
        }

        [DataMember(Name = "APIConfigs")]
        //[XmlArrayItem("APIConfig")]
        public ObservableCollection<APIConfig> APIConfigs { get; set; }

        private string groupName;
        [DataMember(Name = "GroupName")]
        public string GroupName
        {
            get
            {
                return groupName;
            }
            set
            {
                groupName = value;
                NotifyPropertyChanged("GroupName");
            }
        }
    }
}
